import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'vant/lib/index.css';
import './assets/css/reset.css'
import rem from './utils/rem.js'
import less from 'less'
Vue.config.productionTip = false
router.beforeEach((to, from, next) => {
  if (to.meta.title) {
    document.title = to.meta.title;
  }
  next()
})
Vue.use(rem)
Vue.use(less)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
